<%@ page import="it.unibz.ti2.internetPizzeria.webAttributes.*" %>
<%@ page import="it.unibz.ti2.internetPizzeria.entities.*" %>
<%
	out.write("<div id=\"navigationBar\" />");
	UserInfo userInfo = (UserInfo)request.getSession().getAttribute("userInfo");
	String userType = userInfo.getUserType();
	
	if (userType.equals("Customer")){
		out.write("<a href=\"newOrder\">New order</a><br/>");
		out.write("<a href=\"checkOrderStatus\">Check order status</a><br/>");
		out.write("<a href=\"logout\">Logout</a>");
	}
	else if (userType.equals("Employee")){
		out.write("<a href=\"ordersInPreparation\">Orders in preparation</a><br/>");
		out.write("<a href=\"ordersReadyToDeliver\">Orders ready to deliver</a><br/>");
		out.write("<a href=\"deliveryMap\">Delivery map</a><br/>");
		out.write("<a href=\"logout\">Logout</a>");
	}
	else if (userType.equals("Manager")){
		out.write("<a href=\"ordersInPreparation\">Orders in preparation</a><br/>");
		out.write("<a href=\"ordersReadyToDeliver\">Orders ready to deliver</a><br/>");
		out.write("<a href=\"deliveryMap\">Delivery map</a><br/>");
		out.write("<a href=\"manageConfiguration\">Manage configuration</a><br/>");
		out.write("<a href=\"logout\">Logout</a>");
	}
		
	
	

	out.write("</div>");
%>

